//
//  GSEvent.h
//  AgileNYC
//
//  Created by German on 15.06.14.
//  Copyright (c) 2014 Softlegion. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>


@interface GSEvent : NSManagedObject

@property (nonatomic, retain) NSString * author;
@property (nonatomic, retain) NSNumber * avgRating;
@property (nonatomic, retain) NSDate * endTime;
@property (nonatomic, retain) NSNumber * eventId;
@property (nonatomic, retain) NSString * eventImageURL;
@property (nonatomic, retain) NSData * eventPhoto;
@property (nonatomic, retain) NSString * introduction;
@property (nonatomic, retain) NSNumber * isCheckInChanged; //по хорошему надо сделать это свойство через битовую маску
@property (nonatomic, retain) NSNumber * isRatingChanged;  // и это свойство через битовую маску
@property (nonatomic, retain) NSNumber * isCheckIn;
@property (nonatomic, retain) NSDate * modifiedDate;
@property (nonatomic, retain) NSNumber * myRating;
@property (nonatomic, retain) NSString * room;
@property (nonatomic, retain) NSDate * startTime;
@property (nonatomic, retain) NSString * topic;


-(void) completeWithServerResponse: (NSDictionary*) response;

-(NSString*) eventTimeRangeInString; //returns formatted string as "09:00 - 15:00"
-(NSString*) eventDateInString;      //returns formatted string as 07/23/2014

-(bool) isEventCompleted;
-(bool) isEventInProcess;

-(NSString*) allEventData; //For search purpose

@end
